import {Outlet,Link} from 'umi'
const Home:React.FC=()=>{
    return(
        <>
            <h1>主页</h1>
            {/* 配置子路由的出口 */}
            <ul>
                <li><Link to="/home/hotNews">热门新闻</Link></li>
                <li><Link to="/home/lastNews">最新新闻</Link></li>
            </ul>
            <Outlet></Outlet>
        </>
    )
}
export default Home